package com.weimall.pojo;

import java.util.ArrayList;
import java.util.List;

public class GgTbZbExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public GgTbZbExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("ID like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("ID not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andTablenameIsNull() {
            addCriterion("TableName is null");
            return (Criteria) this;
        }

        public Criteria andTablenameIsNotNull() {
            addCriterion("TableName is not null");
            return (Criteria) this;
        }

        public Criteria andTablenameEqualTo(String value) {
            addCriterion("TableName =", value, "tablename");
            return (Criteria) this;
        }

        public Criteria andTablenameNotEqualTo(String value) {
            addCriterion("TableName <>", value, "tablename");
            return (Criteria) this;
        }

        public Criteria andTablenameGreaterThan(String value) {
            addCriterion("TableName >", value, "tablename");
            return (Criteria) this;
        }

        public Criteria andTablenameGreaterThanOrEqualTo(String value) {
            addCriterion("TableName >=", value, "tablename");
            return (Criteria) this;
        }

        public Criteria andTablenameLessThan(String value) {
            addCriterion("TableName <", value, "tablename");
            return (Criteria) this;
        }

        public Criteria andTablenameLessThanOrEqualTo(String value) {
            addCriterion("TableName <=", value, "tablename");
            return (Criteria) this;
        }

        public Criteria andTablenameLike(String value) {
            addCriterion("TableName like", value, "tablename");
            return (Criteria) this;
        }

        public Criteria andTablenameNotLike(String value) {
            addCriterion("TableName not like", value, "tablename");
            return (Criteria) this;
        }

        public Criteria andTablenameIn(List<String> values) {
            addCriterion("TableName in", values, "tablename");
            return (Criteria) this;
        }

        public Criteria andTablenameNotIn(List<String> values) {
            addCriterion("TableName not in", values, "tablename");
            return (Criteria) this;
        }

        public Criteria andTablenameBetween(String value1, String value2) {
            addCriterion("TableName between", value1, value2, "tablename");
            return (Criteria) this;
        }

        public Criteria andTablenameNotBetween(String value1, String value2) {
            addCriterion("TableName not between", value1, value2, "tablename");
            return (Criteria) this;
        }

        public Criteria andDisplaynameIsNull() {
            addCriterion("DisplayName is null");
            return (Criteria) this;
        }

        public Criteria andDisplaynameIsNotNull() {
            addCriterion("DisplayName is not null");
            return (Criteria) this;
        }

        public Criteria andDisplaynameEqualTo(String value) {
            addCriterion("DisplayName =", value, "displayname");
            return (Criteria) this;
        }

        public Criteria andDisplaynameNotEqualTo(String value) {
            addCriterion("DisplayName <>", value, "displayname");
            return (Criteria) this;
        }

        public Criteria andDisplaynameGreaterThan(String value) {
            addCriterion("DisplayName >", value, "displayname");
            return (Criteria) this;
        }

        public Criteria andDisplaynameGreaterThanOrEqualTo(String value) {
            addCriterion("DisplayName >=", value, "displayname");
            return (Criteria) this;
        }

        public Criteria andDisplaynameLessThan(String value) {
            addCriterion("DisplayName <", value, "displayname");
            return (Criteria) this;
        }

        public Criteria andDisplaynameLessThanOrEqualTo(String value) {
            addCriterion("DisplayName <=", value, "displayname");
            return (Criteria) this;
        }

        public Criteria andDisplaynameLike(String value) {
            addCriterion("DisplayName like", value, "displayname");
            return (Criteria) this;
        }

        public Criteria andDisplaynameNotLike(String value) {
            addCriterion("DisplayName not like", value, "displayname");
            return (Criteria) this;
        }

        public Criteria andDisplaynameIn(List<String> values) {
            addCriterion("DisplayName in", values, "displayname");
            return (Criteria) this;
        }

        public Criteria andDisplaynameNotIn(List<String> values) {
            addCriterion("DisplayName not in", values, "displayname");
            return (Criteria) this;
        }

        public Criteria andDisplaynameBetween(String value1, String value2) {
            addCriterion("DisplayName between", value1, value2, "displayname");
            return (Criteria) this;
        }

        public Criteria andDisplaynameNotBetween(String value1, String value2) {
            addCriterion("DisplayName not between", value1, value2, "displayname");
            return (Criteria) this;
        }

        public Criteria andIstypeIsNull() {
            addCriterion("IsType is null");
            return (Criteria) this;
        }

        public Criteria andIstypeIsNotNull() {
            addCriterion("IsType is not null");
            return (Criteria) this;
        }

        public Criteria andIstypeEqualTo(String value) {
            addCriterion("IsType =", value, "istype");
            return (Criteria) this;
        }

        public Criteria andIstypeNotEqualTo(String value) {
            addCriterion("IsType <>", value, "istype");
            return (Criteria) this;
        }

        public Criteria andIstypeGreaterThan(String value) {
            addCriterion("IsType >", value, "istype");
            return (Criteria) this;
        }

        public Criteria andIstypeGreaterThanOrEqualTo(String value) {
            addCriterion("IsType >=", value, "istype");
            return (Criteria) this;
        }

        public Criteria andIstypeLessThan(String value) {
            addCriterion("IsType <", value, "istype");
            return (Criteria) this;
        }

        public Criteria andIstypeLessThanOrEqualTo(String value) {
            addCriterion("IsType <=", value, "istype");
            return (Criteria) this;
        }

        public Criteria andIstypeLike(String value) {
            addCriterion("IsType like", value, "istype");
            return (Criteria) this;
        }

        public Criteria andIstypeNotLike(String value) {
            addCriterion("IsType not like", value, "istype");
            return (Criteria) this;
        }

        public Criteria andIstypeIn(List<String> values) {
            addCriterion("IsType in", values, "istype");
            return (Criteria) this;
        }

        public Criteria andIstypeNotIn(List<String> values) {
            addCriterion("IsType not in", values, "istype");
            return (Criteria) this;
        }

        public Criteria andIstypeBetween(String value1, String value2) {
            addCriterion("IsType between", value1, value2, "istype");
            return (Criteria) this;
        }

        public Criteria andIstypeNotBetween(String value1, String value2) {
            addCriterion("IsType not between", value1, value2, "istype");
            return (Criteria) this;
        }

        public Criteria andIsexecuteIsNull() {
            addCriterion("IsExecute is null");
            return (Criteria) this;
        }

        public Criteria andIsexecuteIsNotNull() {
            addCriterion("IsExecute is not null");
            return (Criteria) this;
        }

        public Criteria andIsexecuteEqualTo(String value) {
            addCriterion("IsExecute =", value, "isexecute");
            return (Criteria) this;
        }

        public Criteria andIsexecuteNotEqualTo(String value) {
            addCriterion("IsExecute <>", value, "isexecute");
            return (Criteria) this;
        }

        public Criteria andIsexecuteGreaterThan(String value) {
            addCriterion("IsExecute >", value, "isexecute");
            return (Criteria) this;
        }

        public Criteria andIsexecuteGreaterThanOrEqualTo(String value) {
            addCriterion("IsExecute >=", value, "isexecute");
            return (Criteria) this;
        }

        public Criteria andIsexecuteLessThan(String value) {
            addCriterion("IsExecute <", value, "isexecute");
            return (Criteria) this;
        }

        public Criteria andIsexecuteLessThanOrEqualTo(String value) {
            addCriterion("IsExecute <=", value, "isexecute");
            return (Criteria) this;
        }

        public Criteria andIsexecuteLike(String value) {
            addCriterion("IsExecute like", value, "isexecute");
            return (Criteria) this;
        }

        public Criteria andIsexecuteNotLike(String value) {
            addCriterion("IsExecute not like", value, "isexecute");
            return (Criteria) this;
        }

        public Criteria andIsexecuteIn(List<String> values) {
            addCriterion("IsExecute in", values, "isexecute");
            return (Criteria) this;
        }

        public Criteria andIsexecuteNotIn(List<String> values) {
            addCriterion("IsExecute not in", values, "isexecute");
            return (Criteria) this;
        }

        public Criteria andIsexecuteBetween(String value1, String value2) {
            addCriterion("IsExecute between", value1, value2, "isexecute");
            return (Criteria) this;
        }

        public Criteria andIsexecuteNotBetween(String value1, String value2) {
            addCriterion("IsExecute not between", value1, value2, "isexecute");
            return (Criteria) this;
        }

        public Criteria andIsendIsNull() {
            addCriterion("IsEnd is null");
            return (Criteria) this;
        }

        public Criteria andIsendIsNotNull() {
            addCriterion("IsEnd is not null");
            return (Criteria) this;
        }

        public Criteria andIsendEqualTo(String value) {
            addCriterion("IsEnd =", value, "isend");
            return (Criteria) this;
        }

        public Criteria andIsendNotEqualTo(String value) {
            addCriterion("IsEnd <>", value, "isend");
            return (Criteria) this;
        }

        public Criteria andIsendGreaterThan(String value) {
            addCriterion("IsEnd >", value, "isend");
            return (Criteria) this;
        }

        public Criteria andIsendGreaterThanOrEqualTo(String value) {
            addCriterion("IsEnd >=", value, "isend");
            return (Criteria) this;
        }

        public Criteria andIsendLessThan(String value) {
            addCriterion("IsEnd <", value, "isend");
            return (Criteria) this;
        }

        public Criteria andIsendLessThanOrEqualTo(String value) {
            addCriterion("IsEnd <=", value, "isend");
            return (Criteria) this;
        }

        public Criteria andIsendLike(String value) {
            addCriterion("IsEnd like", value, "isend");
            return (Criteria) this;
        }

        public Criteria andIsendNotLike(String value) {
            addCriterion("IsEnd not like", value, "isend");
            return (Criteria) this;
        }

        public Criteria andIsendIn(List<String> values) {
            addCriterion("IsEnd in", values, "isend");
            return (Criteria) this;
        }

        public Criteria andIsendNotIn(List<String> values) {
            addCriterion("IsEnd not in", values, "isend");
            return (Criteria) this;
        }

        public Criteria andIsendBetween(String value1, String value2) {
            addCriterion("IsEnd between", value1, value2, "isend");
            return (Criteria) this;
        }

        public Criteria andIsendNotBetween(String value1, String value2) {
            addCriterion("IsEnd not between", value1, value2, "isend");
            return (Criteria) this;
        }

        public Criteria andUpdownflagIsNull() {
            addCriterion("UpDownFlag is null");
            return (Criteria) this;
        }

        public Criteria andUpdownflagIsNotNull() {
            addCriterion("UpDownFlag is not null");
            return (Criteria) this;
        }

        public Criteria andUpdownflagEqualTo(String value) {
            addCriterion("UpDownFlag =", value, "updownflag");
            return (Criteria) this;
        }

        public Criteria andUpdownflagNotEqualTo(String value) {
            addCriterion("UpDownFlag <>", value, "updownflag");
            return (Criteria) this;
        }

        public Criteria andUpdownflagGreaterThan(String value) {
            addCriterion("UpDownFlag >", value, "updownflag");
            return (Criteria) this;
        }

        public Criteria andUpdownflagGreaterThanOrEqualTo(String value) {
            addCriterion("UpDownFlag >=", value, "updownflag");
            return (Criteria) this;
        }

        public Criteria andUpdownflagLessThan(String value) {
            addCriterion("UpDownFlag <", value, "updownflag");
            return (Criteria) this;
        }

        public Criteria andUpdownflagLessThanOrEqualTo(String value) {
            addCriterion("UpDownFlag <=", value, "updownflag");
            return (Criteria) this;
        }

        public Criteria andUpdownflagLike(String value) {
            addCriterion("UpDownFlag like", value, "updownflag");
            return (Criteria) this;
        }

        public Criteria andUpdownflagNotLike(String value) {
            addCriterion("UpDownFlag not like", value, "updownflag");
            return (Criteria) this;
        }

        public Criteria andUpdownflagIn(List<String> values) {
            addCriterion("UpDownFlag in", values, "updownflag");
            return (Criteria) this;
        }

        public Criteria andUpdownflagNotIn(List<String> values) {
            addCriterion("UpDownFlag not in", values, "updownflag");
            return (Criteria) this;
        }

        public Criteria andUpdownflagBetween(String value1, String value2) {
            addCriterion("UpDownFlag between", value1, value2, "updownflag");
            return (Criteria) this;
        }

        public Criteria andUpdownflagNotBetween(String value1, String value2) {
            addCriterion("UpDownFlag not between", value1, value2, "updownflag");
            return (Criteria) this;
        }

        public Criteria andBillnameIsNull() {
            addCriterion("BillName is null");
            return (Criteria) this;
        }

        public Criteria andBillnameIsNotNull() {
            addCriterion("BillName is not null");
            return (Criteria) this;
        }

        public Criteria andBillnameEqualTo(String value) {
            addCriterion("BillName =", value, "billname");
            return (Criteria) this;
        }

        public Criteria andBillnameNotEqualTo(String value) {
            addCriterion("BillName <>", value, "billname");
            return (Criteria) this;
        }

        public Criteria andBillnameGreaterThan(String value) {
            addCriterion("BillName >", value, "billname");
            return (Criteria) this;
        }

        public Criteria andBillnameGreaterThanOrEqualTo(String value) {
            addCriterion("BillName >=", value, "billname");
            return (Criteria) this;
        }

        public Criteria andBillnameLessThan(String value) {
            addCriterion("BillName <", value, "billname");
            return (Criteria) this;
        }

        public Criteria andBillnameLessThanOrEqualTo(String value) {
            addCriterion("BillName <=", value, "billname");
            return (Criteria) this;
        }

        public Criteria andBillnameLike(String value) {
            addCriterion("BillName like", value, "billname");
            return (Criteria) this;
        }

        public Criteria andBillnameNotLike(String value) {
            addCriterion("BillName not like", value, "billname");
            return (Criteria) this;
        }

        public Criteria andBillnameIn(List<String> values) {
            addCriterion("BillName in", values, "billname");
            return (Criteria) this;
        }

        public Criteria andBillnameNotIn(List<String> values) {
            addCriterion("BillName not in", values, "billname");
            return (Criteria) this;
        }

        public Criteria andBillnameBetween(String value1, String value2) {
            addCriterion("BillName between", value1, value2, "billname");
            return (Criteria) this;
        }

        public Criteria andBillnameNotBetween(String value1, String value2) {
            addCriterion("BillName not between", value1, value2, "billname");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}